package bishi.wangyi;

import javax.imageio.metadata.IIOMetadataFormatImpl;
import java.util.*;

/**
 * @Classname Main3
 * @Description TODO
 * @Date 2021/9/19 16:19
 * @Created by ASUS
 */
public class Main3 {
    //AcMer
    //5
    public static void main(String[] args) {
        List<String> strings5 = Arrays.asList("BcMer", "CcMer", "DcMer", "EcMer", "FcMer", "GcMer", "HcMer", "IcMer", "JcMer", "KcMer", "LcMer", "McMer", "NcMer", "OcMer", "PcMer", "QcMer", "RcMer", "ScMer", "TcMer", "UcMer", "VcMer", "WcMer", "XcMer", "YcMer", "ZcMer", "AaMer", "AbMer", "AdMer", "AeMer", "AfMer", "AgMer", "AhMer", "AiMer", "AjMer", "AkMer", "AlMer", "AmMer", "AnMer", "AoMer", "ApMer", "AqMer", "ArMer", "AsMer", "AtMer", "AuMer", "AvMer", "AwMer", "AxMer", "AyMer", "AzMer", "AcAer", "AcBer", "AcCer", "AcDer", "AcEer", "AcFer", "AcGer", "AcHer", "AcIer", "AcJer", "AcKer", "AcLer", "AcNer", "AcOer", "AcPer", "AcQer", "AcRer", "AcSer", "AcTer", "AcUer", "AcVer", "AcWer", "AcXer", "AcYer", "AcZer", "AcMar", "AcMbr", "AcMcr", "AcMdr", "AcMfr", "AcMgr", "AcMhr", "AcMir", "AcMjr", "AcMkr", "AcMlr", "AcMmr", "AcMnr", "AcMor", "AcMpr", "AcMqr", "AcMrr", "AcMsr", "AcMtr", "AcMur", "AcMvr", "AcMwr", "AcMxr", "AcMyr", "AcMzr", "AcMea", "AcMeb", "AcMec", "AcMed", "AcMee", "AcMef", "AcMeg", "AcMeh", "AcMei", "AcMej", "AcMek", "AcMel", "AcMem", "AcMen", "AcMeo", "AcMep", "AcMeq", "AcMes", "AcMet", "AcMeu", "AcMev", "AcMew", "AcMex", "AcMey", "AcMez");
        List<String> string10 = new ArrayList<>();
        string10.add("acMer");
        string10.add("ACMer");
        string10.add("Acmer");
        string10.add("AcMEr");
        string10.add("AcMeR");
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        for (String s1 : strings5) {
            if (s.contains(s1)) {
                System.out.println(5);
                return;
            }
        }
        for (String s1 : string10) {
            if (s.contains(s1)) {
                System.out.println(10);
                return;
            }
        }
        System.out.println(15);
    }
}
